import UIKit

class DataMessageViewModel: CardMessageViewModel, AttachmentLoadingViewModel {

    var progress: Double?
    var showPlayIconAfterFinished: Bool = false
    var operationButtonStyle: NetworkOperationButton.Style = .finished(showPlayIcon: false)
    
    override var size: CGSize {
        return CGSize(width: 280, height: 72)
    }
    
    var automaticallyLoadsAttachment: Bool {
        return false
    }
    
    override init(message: MessageItem, style: Style, fits layoutWidth: CGFloat) {
        super.init(message: message, style: style, fits: layoutWidth)
        updateOperationButtonStyle()
    }
    
    func beginAttachmentLoading() {
        guard message.mediaStatus == MediaStatus.PENDING.rawValue || message.mediaStatus == MediaStatus.CANCELED.rawValue else {
            return
        }
    }
    
    func cancelAttachmentLoading(markMediaStatusCancelled: Bool) {
        let jobId: String

    }
    
}
